﻿import QtQuick 2.12
import QtQuick.Controls 2.12

// 用于处理AnimatedImage不知道为什么占用内存巨大的问题
Item {

    id: root

    property string source: ""
    property bool playing: visible
    property real speed: 1

    onPlayingChanged: {

    }

    Repeater{           // 解锁了ListView的新用法(bushi
        anchors.fill: root
        model: root.visible ? 1 : 0

        delegate: AnimatedImage{
            height: root.height;  width: root.width
            source: root.source
            playing: root.playing
            speed: root.speed
        }
    }

}
